// 时间转换
export function newDate(time) {
  let date = new Date(time)
  console.log(date.getFullYear())
  let Y = date.getFullYear() + '年';
  let M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '月';
  let D = date.getDate() + '日';
  return Y+M+D
}

// 时间转换
export function newDateX(time) {
  let date = new Date(time)
  console.log(date.getFullYear())
  let Y = date.getFullYear() + '-';
  let M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
  let D = (date.getDate() < 10 ? '0'+ date.getDate() : date.getDate())
  return Y+M+D
}

// 时间转换体温单
export function newDateY(time) {
  let date = time
  let Y = date.getFullYear() + '-';
  let M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
  let D = (date.getDate() < 10 ? '0'+ date.getDate() : date.getDate())
  return Y+M+D
}